# _*_ coding: utf-8 _*_


formatter = "%r %r %r %r"

print (formatter % (1, 2, 3, 4))
print (formatter % ("one", "two", "three", "four"))
print (formatter % (True, False, False, True))
print (formatter % (formatter, formatter, formatter, formatter))

# %r 打印字符时，字符串的引号默认打印单引号
#    如果字符串中包含单引号，则打印为双引号
print (formatter % (
    "I had this thing.",
    "That you could type up right.",
    "But it didn't sing.",
    "So I said goodnight."
))